Contents | Index | < Browse | Browse >

LETTERrenameULETTER Renames a file.

Overview
#include <stdio.h>

error = rename(oldname,newname);

int error;
const char *oldname;
const char *newname;

Portability
ANSI

Description
Renames the file "oldname" into "newname". It is only possible to rename a file on the same physical volume, moving a file into another directory is however allowed.

Returns
A value unequal zero if an error occured and zero otherwise.